package com.tom.architect02.p4.day36.simple6;

import com.google.gson.Gson;

/**
 * Added by Tom on 2024/01/26.
 * 解析工厂
 */
public class GsonConvert implements Converter {

    @Override
    public <T> T convert(String value, Class<T> type) {
        return new Gson().fromJson(value,type);
    }
}
